package pers.sports.dao;

import org.springframework.stereotype.Repository;
import pers.sports.entity.Project;
import pers.sports.vo.ProjectSexNum;

import java.util.List;

@Repository
public interface ProjectDao {

    //查询所有项目
    List<Project> findAllProject();

    //查询每个项目每个性别各有多少人
    ProjectSexNum findProjectNumById(String projectId);

    //报名信息填报
    Integer insertApplyInfo(String stuId, String projectId);

    //查询是否已经报过名
    Integer findAlreadySignedUp(String stuId, String projectId);

    List<Project> findAll();
}
